import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner num = new Scanner(System.in);
        double x = num.nextDouble();
        int a = (int) x;
        double y = x - a *1.0;
        if(y >= 0.5){
            System.out.println(a+1);
        }else{
            System.out.println(a);
        }
    }
}
